<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title>首页</title>
    <style type="text/css">label.error { position:inherit;  }</style>

<!--    <th:block th:include="include :: header('首页')"/>-->

</head>

<body  class="signin" onload="ShowTime();">
<div class="logopanel m-b">
</div>
<div class="signinpanel">
    <div class="row">
        <div class="col-sm-9">
            <div class="signin-info">
                <div  class="no-margins">
                    <h1>欢迎使用 <strong>银行OA系统</strong></h1>
                </div>
            </div>
        </div>
        <div class="col-sm-12">
           <h2> 现在时间：<span id="stime"></span></h2>
        </div>
    </div>
</div>
</body>

</div>
<th:block th:include="include :: sparkline-js"/>
<!--<script type="text/javascript">-->
<script th:inline="javascript">

    function check(val) {
        if (val < 10) {
            return ("0" + val);
        } else {
            return (val);
        }
    }

    function ShowTime() {
        var date = new Date();
        var year = date.getFullYear();
        var month = date.getMonth() + 1;
        var day = date.getDate();
        var hour = date.getHours();
        var minutes = date.getMinutes();
        var second = date.getSeconds();
        var timestr = year + "年" + month + "月" + day + "日  " + check(hour)
            + ":" + check(minutes) + ":" + check(second);
        document.getElementById("stime").innerHTML = timestr;
        var timerID = setTimeout('ShowTime()', 1000);
    }
</script>
</body>
</html>
